package com.scripts;


import Utilities.Commons;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.safari.SafariDriver;
import org.testng.*;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;

import java.io.Console;
import java.util.List;

/**
 * Created by orlandocampos on 10/7/14.
 */
public class TestCheckBoxes {

    protected static WebDriver wd;

    @BeforeClass
    public static void setup(){

        wd = new ChromeDriver();

    }


    @Test

    public static void testcase() throws Exception{

        wd.get("http://www.w3schools.com/html/html_forms.asp");

        wd.findElements(By.name("vehicle")).get(1).click();
        wd.findElements(By.name("vehicle")).get(0).click();

        Commons.wait(Commons.TIMEOUT_5_SECONDS);
    }

    @AfterClass

    public static void close(){
        wd.close();

        wd.quit();
    }


}
